//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.purvar.boot.comm.api.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;

@JsonIgnoreProperties(
        ignoreUnknown = true
)
public class DictModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private String value;
    private String text;

    public DictModel() {
    }

    public DictModel(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getTitle() {
        return this.text;
    }

    public String getValue() {
        return this.value;
    }

    public DictModel setValue(final String value) {
        this.value = value;
        return this;
    }

    public String getText() {
        return this.text;
    }

    public DictModel setText(final String text) {
        this.text = text;
        return this;
    }

    public String toString() {
        return "DictModel(value=" + this.getValue() + ", text=" + this.getText() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof DictModel)) {
            return false;
        } else {
            DictModel other = (DictModel) o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$value = this.getValue();
                Object other$value = other.getValue();
                if (this$value == null) {
                    if (other$value != null) {
                        return false;
                    }
                } else if (!this$value.equals(other$value)) {
                    return false;
                }

                Object this$text = this.getText();
                Object other$text = other.getText();
                if (this$text == null) {
                    if (other$text != null) {
                        return false;
                    }
                } else if (!this$text.equals(other$text)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof DictModel;
    }


}
